#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int f(int n) {
	if (n)
		return f(n - 1) + n;
	else return n;
}
int main()
{
	printf("%d", f(4));
}